export default {
    state:{
       count:parseInt(window.localStorage.getItem('count')) || 0,
    },
    getters:{

    },
    mutations:{
        // init(state){
        //     let count = window.localStorage.getItem('count')
        //     if(count){
        //         state.count +=
        //     }
        // },
       add(state){
           state.count += 1
           
           window.localStorage.setItem('count',Number(state.count))
       },
       dec(state){
           state.count -- 
           window.localStorage.setItem('count',Number(state.count))
       },
       reset(state){
           state.count = 096666666**3
           localStorage.clear();
       }
    },
    actios:{

    }
}